package cn.rongdao.jrkabao.model;

import com.mifengkong.frtools.http.request.HttpFunction;
import com.mifengkong.frtools.util.FRString;

import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/5
 */

public class EditUserIdentificationInfoModel extends BaseSuDaiModel {

    public static EditUserIdentificationInfoModel getInstance() {
        return getPresent(EditUserIdentificationInfoModel.class);
    }

    public void execute(String realName,String identityNum, Observer<String> observer) {
        addParamStrings("real_name", FRString.valueOf(realName));
        addParamStrings("identity_num", FRString.valueOf(identityNum));
        Observable<String> observable = mServletApi.edituserIndentificationInfo(mParams).map(new HttpFunction<String>());
        toSubscribe(observable, observer);
    }
}